package com.hshx.client;

import com.hshx.pojo.Job_posting;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "gateway",
        path = "/zhaopingService",
        contextId = "JobpostingClient")
public interface JobpostingClient {

    @RequestMapping("/getAllJob")
    List<Job_posting> getAllJob(int pageIndex,int pageSize);

    @RequestMapping("/addJobposting")
    boolean addJobposting(@SpringQueryMap Job_posting jobPosting);

    @RequestMapping("/getOneJob")
    Job_posting getOneJob(int job_posting_id);

    @RequestMapping("/updJobById")
    public boolean updJobById(@SpringQueryMap Job_posting job_posting);

    @RequestMapping("/delJobById")
    boolean delJobById(int jobId);
}
